using System;
using GeneXus.Builder;
using System.IO;
public class bldDevelopermenu : GxBaseBuilder
{
   string cs_path = "." ;
   public bldDevelopermenu( ) : base()
   {
   }

   public override int BeforeCompile( )
   {
      return 0 ;
   }

   public override int AfterCompile( )
   {
      int ErrCode ;
      ErrCode = 0 ;
      if ( ! File.Exists(@"bin\client.exe.config") || checkTime(@"bin\client.exe.config",cs_path + @"\client.exe.config") )
      {
         File.Copy( cs_path + @"\client.exe.config", @"bin\client.exe.config", true);
      }
      return ErrCode ;
   }

   static public int Main( string[] args )
   {
      bldDevelopermenu x = new bldDevelopermenu() ;
      x.SetMainSourceFile( "bldDevelopermenu.cs");
      x.LoadVariables( args);
      return x.CompileAll( );
   }

   public override ItemCollection GetSortedBuildList( )
   {
      ItemCollection sc = new ItemCollection() ;
      sc.Add( @"bin\GeneXus.Programs.Common.dll", cs_path + @"\GeneXus.Programs.Common.rsp");
      return sc ;
   }

   public override ItemCollection GetRuntimeBuildList( )
   {
      ItemCollection sc = new ItemCollection() ;
      sc.Add( @"bin\wpprincipal.dll", cs_path + @"\wpprincipal.rsp");
      sc.Add( @"bin\cursoalumnoswc.dll", cs_path + @"\cursoalumnoswc.rsp");
      sc.Add( @"bin\cursoprofesoreswc.dll", cs_path + @"\cursoprofesoreswc.rsp");
      sc.Add( @"bin\cursogeneral.dll", cs_path + @"\cursogeneral.rsp");
      sc.Add( @"bin\wwcurso.dll", cs_path + @"\wwcurso.rsp");
      sc.Add( @"bin\viewcurso.dll", cs_path + @"\viewcurso.rsp");
      sc.Add( @"bin\materiaimpartewc.dll", cs_path + @"\materiaimpartewc.rsp");
      sc.Add( @"bin\materiageneral.dll", cs_path + @"\materiageneral.rsp");
      sc.Add( @"bin\wwmateria.dll", cs_path + @"\wwmateria.rsp");
      sc.Add( @"bin\viewmateria.dll", cs_path + @"\viewmateria.rsp");
      sc.Add( @"bin\profesorprofesoreswc.dll", cs_path + @"\profesorprofesoreswc.rsp");
      sc.Add( @"bin\profesorimpartewc.dll", cs_path + @"\profesorimpartewc.rsp");
      sc.Add( @"bin\profesorgeneral.dll", cs_path + @"\profesorgeneral.rsp");
      sc.Add( @"bin\wwprofesor.dll", cs_path + @"\wwprofesor.rsp");
      sc.Add( @"bin\viewprofesor.dll", cs_path + @"\viewprofesor.rsp");
      sc.Add( @"bin\alumnoalumnoswc.dll", cs_path + @"\alumnoalumnoswc.rsp");
      sc.Add( @"bin\alumnotutoriaswc.dll", cs_path + @"\alumnotutoriaswc.rsp");
      sc.Add( @"bin\alumnogeneral.dll", cs_path + @"\alumnogeneral.rsp");
      sc.Add( @"bin\wwalumno.dll", cs_path + @"\wwalumno.rsp");
      sc.Add( @"bin\viewalumno.dll", cs_path + @"\viewalumno.rsp");
      sc.Add( @"bin\appmastersd.dll", cs_path + @"\appmastersd.rsp");
      sc.Add( @"bin\tabbedview.dll", cs_path + @"\tabbedview.rsp");
      sc.Add( @"bin\home.dll", cs_path + @"\home.rsp");
      sc.Add( @"bin\notauthorized.dll", cs_path + @"\notauthorized.rsp");
      sc.Add( @"bin\wplogin.dll", cs_path + @"\wplogin.rsp");
      sc.Add( @"bin\gx0091.dll", cs_path + @"\gx0091.rsp");
      sc.Add( @"bin\gx0082.dll", cs_path + @"\gx0082.rsp");
      sc.Add( @"bin\gx0071.dll", cs_path + @"\gx0071.rsp");
      sc.Add( @"bin\gx0051.dll", cs_path + @"\gx0051.rsp");
      sc.Add( @"bin\gx0040.dll", cs_path + @"\gx0040.rsp");
      sc.Add( @"bin\gx0030.dll", cs_path + @"\gx0030.rsp");
      sc.Add( @"bin\gx0060.dll", cs_path + @"\gx0060.rsp");
      sc.Add( @"bin\gx0021.dll", cs_path + @"\gx0021.rsp");
      sc.Add( @"bin\gx0010.dll", cs_path + @"\gx0010.rsp");
      sc.Add( @"bin\promptmasterpage.dll", cs_path + @"\promptmasterpage.rsp");
      sc.Add( @"bin\recentlinks.dll", cs_path + @"\recentlinks.rsp");
      sc.Add( @"bin\appmasterpage.dll", cs_path + @"\appmasterpage.rsp");
      sc.Add( @"bin\curso.dll", cs_path + @"\curso.rsp");
      sc.Add( @"bin\profesor.dll", cs_path + @"\profesor.rsp");
      sc.Add( @"bin\materia.dll", cs_path + @"\materia.rsp");
      sc.Add( @"bin\alumno.dll", cs_path + @"\alumno.rsp");
      return sc ;
   }

   public override ItemCollection GetResBuildList( )
   {
      ItemCollection sc = new ItemCollection() ;
      sc.Add( @"bin\messages.spa.dll", cs_path + @"\messages.spa.txt");
      return sc ;
   }

   public override bool ToBuild( String obj )
   {
      if (checkTime(obj, cs_path + @"\bin\GxClasses.dll" ))
         return true;
      if ( obj == @"bin\GeneXus.Programs.Common.dll" )
      {
         if (checkTime(obj, cs_path + @"\type_SdtLinkList_LinkItem.cs" ))
            return true;
         if (checkTime(obj, cs_path + @"\type_SdtContext.cs" ))
            return true;
         if (checkTime(obj, cs_path + @"\type_SdtGridState.cs" ))
            return true;
         if (checkTime(obj, cs_path + @"\type_SdtGridState_FilterValue.cs" ))
            return true;
         if (checkTime(obj, cs_path + @"\type_SdtProgramNames_ProgramName.cs" ))
            return true;
         if (checkTime(obj, cs_path + @"\type_SdtTabOptions_TabOptionsItem.cs" ))
            return true;
         if (checkTime(obj, cs_path + @"\type_SdtTransactionContext.cs" ))
            return true;
         if (checkTime(obj, cs_path + @"\type_SdtTransactionContext_Attribute.cs" ))
            return true;
         if (checkTime(obj, cs_path + @"\type_SdtMenuData_MenuDataItem.cs" ))
            return true;
         if (checkTime(obj, cs_path + @"\GxObjectCollection.cs" ))
            return true;
         if (checkTime(obj, cs_path + @"\GxSilentTrnGridCollection.cs" ))
            return true;
         if (checkTime(obj, cs_path + @"\SoapParm.cs" ))
            return true;
         if (checkTime(obj, cs_path + @"\GxWebStd.cs" ))
            return true;
         if (checkTime(obj, cs_path + @"\GxFullTextSearchReindexer.cs" ))
            return true;
         if (checkTime(obj, cs_path + @"\GxModelInfoProvider.cs" ))
            return true;
         if (checkTime(obj, cs_path + @"\GXDOMAINTrnMode.cs" ))
            return true;
         if (checkTime(obj, cs_path + @"\GXDOMAINRol.cs" ))
            return true;
         if (checkTime(obj, cs_path + @"\GXDOMAINRecentLinksOptions.cs" ))
            return true;
         if (checkTime(obj, cs_path + @"\GXDOMAINPage.cs" ))
            return true;
         if (checkTime(obj, cs_path + @"\GXDOMAINMessageTypes.cs" ))
            return true;
         if (checkTime(obj, cs_path + @"\GXDOMAINIMEMode.cs" ))
            return true;
         if (checkTime(obj, cs_path + @"\GXDOMAINHttpMethod.cs" ))
            return true;
         if (checkTime(obj, cs_path + @"\GXDOMAINGrupo.cs" ))
            return true;
         if (checkTime(obj, cs_path + @"\GXDOMAINCurso.cs" ))
            return true;
      }
      if ( obj == @"bin\messages.spa.dll" )
      {
         if (checkTime(obj, cs_path + @"\messages.spa.txt" ))
            return true;
      }
      return false ;
   }

}

